package com.ahy231.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;
import java.util.Set;

/**
 * @author ahy231
 * @date 2021/8/6 13:34
 * @description
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("用户信息")
public class UserInfo implements Serializable {
    private static final long serialVersionUID = -8333107277449073408L;
    @ApiModelProperty("用户 id")
    private Long userId;
    @ApiModelProperty("用户名")
    private String username;
    @ApiModelProperty("电话")
    private String phone;
    @ApiModelProperty("邮箱")
    private String email;
    @ApiModelProperty("性别（0/未知、1/男、2/女）")
    private Integer sex;
    @ApiModelProperty("真实姓名")
    private String trueName;
    @ApiModelProperty("身份证号")
    private String idCard;
    @ApiModelProperty("头像地址")
    private String imgUrl;
    @ApiModelProperty("用户角色")
    private Set<String> roles;
}
